home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
dev
/
c
/
C_OS3_DT431.readme
< prev
next >
Wrap
Text File
|
1996-11-03
|
7KB
|
157 lines
Short: How: OS3 V40/43 PicDatatype in 100% C
Author: Andreas_Kleinert@t-online.de
Type: dev/c
Replaces: dev/c/C_OS3-DT403.LHA
samplePNM.datatype and source-code V43.1 (25.10.96)
(C) 1996 by Andreas R. Kleinert. All rights reserved.
---
This small sample datatype source code demonstrates, how to completely
write an Amiga OS 3 datatype (V40/V43) without any assembler stubs
or compiler/linker tricks in PURE C source code (currently SAS/C-based).
You may e.g. use this example source code to write more portable
Amiga OS 3 datatypes to allow easier porting of these
to other Amiga OS-derived operating systems, or the native
OS of an upcoming PowerPC Amiga.
Translate your 68k-assembler datatype startup-codes smartly
to C by simply using this source-code as an advice how to do it.
As a common case, a datatype of class picture, supporting
PNM-PGM (P5) and PNM-PPM (P6) has been used as an example.
With picture.datatype V40-42 only PGM is supported,
and with picture.datatype V43 reading of PPM is offered as well,
while encountering an PGM file under V43 causes a fallback to V40
routines (could have been done differently, but was not necessary
here just for demonstration).
For testing this datatype, simply use a tool from the NetPBM package
(or maybe for example a tool supporting superview.library) and save
a graphics in the binary PGM or PPM format (P5/P6 of the PNM series).
Then install this datatype and try loading the file via MultiView.
Should work fine.
---
Feel free to use this source for own projects.
It is allowed to be spread and distributed anywhere, as far
as my consent is concerned.
Amiga Technologies, or the current owner of the technologie,
is allowed to always put this source on their newest
Developer CD-ROM.
Thanks and credits will always be appreciated - for example,
you MAY, but NEED NOT:
give me credits in your program's docs, send me keyfiles for
your programs using the library, and so on.
But that's simply voluntarily.
This work was only roughly inspired by David Junod's original
example source codes for datatypes.
_________________________________________________________
| You may reach me the following way. |
| Send bug-reports, money or whatever to: |
|---------------------------------------------------------|
| * SuperView Development & Registration * |
| * DRAFU Development & Registration * |
| * Image Engineer Registration Site Europe * |
| |
| |
| PerSuaSiVe SoftWorX |
| |
| Andreas R. Kleinert |
| Sandstrasse 1 |
| D-57072 Siegen |
| Germany, Europe |
| |
| Any snail mail to the old address will still be routed. |
| |
| Phone: +49-271-22869 also FAX + AM |
| +49-271-22838 |
| |
| Weekdays after 17.00h. |
| |
| When calling via phone you may leave a message, |
| if I'm not available - but don't expect me |
| calling back to USA, Australia, ... since |
| german phone rates are HIGHLY expensive. |
|_________________________________________________________|
EMail:
DO not SEND ANY binaries (or uuencoded) VIA THE
FOLLOWING EMAIL ADDRESSES, EXCEPT MAYBE small ONES
VIA t-online.de (smaller or equal 16 KB).
THANK YOU.
- Fido Andreas Kleinert 2:2457/350.18
- Usenet
Andreas_Kleinert@superview.ftn.sub.org (Fido-Gate)
Andreas_Kleinert@t-online.de (T-Online)
ARK@COB.wwbnet.de (Z-Netz)
- If nothing else works, try one of these public
Fido-Usenet gateways:
In Germany:
Andreas_Kleinert@p18.f350.n2457.z2.fido.sub.org
From USA or elsewhere:
Andreas_Kleinert@p18.f350.n2457.z2.fidonet.org
Please note, that the "superview.ftn.sub.org"
domain will perhaps be renamed in late 1996.
History:
V43.1 (25.10.96) : - added picture datatype V43 support
- thus added support for 24 Bit PPM (P6),
since PGM only has 256 grayscales
- thus renamed to samplePNM.datatype
V40.3 (13.9.96) : - fixed more "style" things
V40.2 (5.9.96) : - fixed some "style" things
V40.1 (2.9.96) : - first release
---
All mentioned trademarks are subjects to their owners.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
4876 2517 48.3% 25-Oct-96 17:40:02 +samplePNM.datatype
86 76 11.6% 25-Oct-96 16:26:52 +PGM
467 279 40.2% 25-Oct-96 16:26:52 +PGM.info
86 76 11.6% 25-Oct-96 16:27:44 +PPM
467 279 40.2% 25-Oct-96 16:27:44 +PPM.info
107 102 4.6% 25-Oct-96 17:34:40 +CompileNote.readme
778 335 56.9% 02-Sep-96 16:43:42 +classbase.h
11004 2799 74.5% 25-Oct-96 17:39:44 +libfuncs.c
739 301 59.2% 25-Oct-96 16:17:50 +libfuncs.h
3652 1988 45.5% 25-Oct-96 17:39:58 +libfuncs.o
3943 1226 68.9% 25-Oct-96 16:23:58 +LibInit.c
1464 804 45.0% 25-Oct-96 16:28:38 +LibInit.o
4876 2517 48.3% 25-Oct-96 17:40:00 +samplePNM.datatype
835 388 53.5% 25-Oct-96 16:28:52 +samplePNM.datatype.info
245 174 28.9% 25-Oct-96 17:35:00 +SCOPTIONS
408 156 61.7% 25-Oct-96 16:23:58 +smakefile
119 104 12.6% 25-Oct-96 16:23:58 +smakefile.wth
3662 1029 71.9% 13-Sep-96 14:44:58 +StartUp.c
1060 552 47.9% 25-Oct-96 16:28:38 +StartUp.o
5085 2014 60.3% 25-Oct-96 17:47:02 +README
-------- ------- ----- --------- --------
43959 17716 59.6% 25-Oct-96 20:23:12 20 files